package com.bootdo.project.service.impl;

import com.bootdo.project.domain.UserCardAppeal;
import com.bootdo.project.dao.UserCardAppealMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/21.
 */
@Service
public class UserCardAppealService {

	@Autowired
    private UserCardAppealMapper userCardAppealMapper;
    
    public int deleteByPrimaryKey(Long id){
        return userCardAppealMapper.deleteByPrimaryKey(id);
    }

    public int insert(UserCardAppeal record){
        return userCardAppealMapper.insert(record);
    }

    public int insertSelective(UserCardAppeal record){
        return userCardAppealMapper.insertSelective(record);
    }

    public UserCardAppeal selectByPrimaryKey(Long id){
        return userCardAppealMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(UserCardAppeal record){
        return userCardAppealMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(UserCardAppeal record){
        return userCardAppealMapper.updateByPrimaryKey(record);
    }

    public List<UserCardAppeal> selectByCondition(UserCardAppeal record){
        return userCardAppealMapper.selectByCondition(record);
    }

    public List<UserCardAppeal> selectAll(){
        return userCardAppealMapper.selectAll();
    }

    public List<UserCardAppeal> selectByPage(Page<UserCardAppeal> page){
        return userCardAppealMapper.selectByPage(page);
    }

    public Integer count(UserCardAppeal record){
        return userCardAppealMapper.count(record);
    }

    public int deleteByCondition(UserCardAppeal record){
        return userCardAppealMapper.deleteByCondition(record);
    }

}
